String.prototype.trim = function() {
	return this.replace(/(^\s*)|(\s*$)/g, ""); 
}
$.prototype.toggleText = function(text1, text2) {
	var text = this.text().trim();
	if (text == text1) {
		this.text(text2);
	} else if (text == text2) {
		this.text(text1);
	}
}